package com.sf.fy.uav.applet.operate.controller;

import com.sf.fy.uav.common.response.operational.PopUpScreenResponse;
import com.sf.fy.uav.common.utils.Rs;
import com.sf.fy.uav.controller.PopUpScreenRest;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author LTQ
 * @since 2023-11-20
 */
@RestController
@RequestMapping("/sys/pop-up-screen")
public class PopUpScreenController {

    @Autowired
    private PopUpScreenRest popUpScreenRest;

    @GetMapping("get-pop-up-screen")
    @Operation(tags = "获取弹屏", description = "获取弹屏")
    public Rs<List<PopUpScreenResponse>> getPopUpScreen() {
        return Rs.success(popUpScreenRest.getPopUpScreen());
    }
}
